package com.oceansoft.mobile.econsole.modules.api.util;

/**
 * Created by xuhb on 2017/3/29.
 */
public class ApiCodeToMessageUtil {

    public static String codeToMessage(Object code){
        String message = "";
        if(code == null){
            return message;
        }
        if("211001".equals(code)){
            message = "帐户或密码不正确";
        }else if("211004".equals(code)){
            message = "账户被禁用";
        }else if("211011".equals(code)){
            message = "密码太简单";
        }else if("211012".equals(code)){
            message = "此手机号码已注册";
        }else if("211081".equals(code)){
            message = "微信ID已存在";
        }else if("211082".equals(code)){
            message = "微信ID和手机号不匹配";
        }
        return message;
    }
}
